package com.ciaojian.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ciaojian.core.model.vo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author Atlakyn
 */
@Mapper
public interface CheckUserMapper extends BaseMapper<CheckUser> {


    List<ClockMonthVo> myClockMonth(@Param("workerId") int workerId, @Param("month") String month);

    ClockDayVo myClockDay(@Param("workerId") int workerId, @Param("day") String day);

    List<ClockDayVo> myClockDayTime(@Param("workerId") int workerId, @Param("month") String month);

    Integer beLeteMonth(@Param("storeId") Integer storeId, @Param("date") Date date, @Param("endDate") Date endDate);

    Integer beLeteToday(@Param("storeId") Integer storeId);

    List<CheckTodayUserVo> selectCheckToday(@Param("date") String date, @Param("storeId") Integer storeId);
}
